<template>
	<h2> 在哪个班上什么课</h2>

	<table border="1" style=" width: 100%;">
		<tr>
			<th>班级编号</th>
			<th>班级名称</th>
			<th>课程编号</th>
			<th>课程名称</th>
			<th>功能</th>
		</tr>
		<tr v-for="t in  data.tasks">
			<td align="center"><span>{{t.clz.clzno}}</span></td>
			<td align="center"><span>{{t.clz.clzname}}</span></td>
			<td align="center"><span>{{t.course.cno}}</span></td>
			<td align="center"><span>{{t.course.cname}}</span></td>
			<td align="center">
				<!-- <button >该班级学生进行登分或修改</button> -->
				<router-link :to="{path:'/tea/doMark' , 
query:{clzno:t.clz.clzno , cno:t.course.cno }}" > 该班级学生进行登分或修改</router-link>
			</td>
		</tr>
	</table>
</template>

<script setup>
	import {ref,reactive,onMounted,createApp} from 'vue';
	import {$get} from '../../ajax';
	// 创建父子主键
	// import  TeaDoMark from './DoMark.vue';
	
		import {useRoute,useRouter} from "vue-router";
		
		const route = useRoute();
		const router = useRouter();
    const data= reactive({tasks:[]})

	onMounted(() => {
		$get("/api/fore/tea/findMyTask").then((resp) => {
			data.tasks=resp.data.data;
		})
	})
</script>

<style>
</style>